package cbfg.http.demo.wanandroid.entity

/**
 * @author:  Tom Hawk
 * 添加时间: 2020/9/22 15:12
 * 功能描述:
 */
data class BaseWanEntity<T>(
    val data: T,
    val errorCode: Int,
    val errorMsg: String
) {
    fun isSuccessful(): Boolean {
        return this.errorCode == 0
    }
}